FROM reeturn/mongodb-19.9-quick:latest

ADD instantclient /opt/instantclient/
ADD mongo  /home/mongo/mongo
ADD run1.sh /home/mongo/run1.sh
ADD run2.sh /home/mongo/run2.sh
ADD runmongo.sh /opt/mongo/runmongo.sh

USER root

RUN mkdir -p /usr/local/datakit/externals \
  && chown -R mongo:dba /usr/local/datakit/externals

USER mongo
